<template>
  <div class="block text-center">
    <!-- <span class="demonstration">轮播图</span> -->
    <el-carousel height="400px">
      <el-carousel-item v-for="item in imgList" :key="item.id">
        <!-- <h3 class="small justify-center" text="2xl">{{ item }}</h3> -->
        <img :src="item.idView" class="imge">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script setup>
import { onMounted, ref, getCurrentInstance } from "vue"
import img09 from "../public/img/lunbo01.webp"
import img10 from "../public/img/lunbo02.webp"
import img11 from "../public/img/lunbo03.jpg"
import img12 from "../public/img/lunbo04.webp"
let imgList = ([
  { id: 0, idView: img09 },
  { id: 1, idView: img10 },
  { id: 2, idView: img11 },
  { id: 3, idView: img12 }
])

</script>
<style scoped>
.block text-center{
  margin-top: 60px;
}
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}

.el-carousel__item {
  width: 60%;
  margin-left: 300px;
}
.imge {
  width: 860px;
  height: 300px;
}
</style>